package com.lam.common.validate.constant;

public class ValidConstant {
	
	public static final String TABLE_UNIQUE_CONFIG = "table_unique_config";
	
	/** 唯一类型，true唯一 */
	public static final String UNIQUE_YES = "true";
	/** 唯一类型，false不唯一 */
	public static final String UNIQUE_NO = "false";
	
	
	/** 正则表达式: 手机号(国内) */
	public static final String REG_PHONE = "0?(13|14|15|17|18)[0-9]{9}";
	/** 正则表达式: 手机号(国际) */
	public static final String REG_PHONE_GLOBAL = "^(\\+\\d{2}-)?(\\d{2,3}-)?([1][3,4,5,7,8][0-9]\\d{8})$";
	
	/** 正则表达式: 大陆身份证 */
	public static final String REG_IDCARD = "\\d{17}[\\d|x]|\\d{15}";
	/** 正则表达式: email */
	public static final String REG_EMAIL = "\\w[-\\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\\.)+[A-Za-z]{2,14}";
	/** 正则表达式: 网址 */
	public static final String REG_SITE = "^((https|http|ftp|rtsp|mms)?:\\/\\/)[^\\s]+";
	
	/** 正则表达式: 用户名 */
	public static final String USER_NAME = "[A-Za-z0-9_]+";
	/** 正则表达式: 用户密码 */
	public static final String USER_PWD = "[A-Za-z0-9_\\.\\$#@!]+";
	

}
